import request from '@/utils/request'
//民主测评
export function getUserList(data) {
  return request({
    url: '/tableUser/list',
    method: 'post',
    data
  })
}
export function getUserListByDepartment(data) {
  return request({
    url: '/tableUser/getlistByDepartment',
    method: 'post',
    data
  })
}

export function getUserListNoName(data) {
  return request({
    url: '/tableUser/listNoName',
    method: 'post',
    data
  })
}
export function getRoleList(data) {
  return request({
    url: '/role/list',
    method: 'post',
    data
  })
}

export function createUser(data) {
  return request({
    url: '/tableUser/create',
    method: 'post',
    data
  })

}


export function updateUser(data) {
  return request({
    url: '/tableUser/update',
    method: 'put',
    data
  })
}

export function deleteUser(data) {
  return request({
    url: '/tableUser/delete?idlist='+data,
    method: 'get',

  })
}






